package cn.edu.sjtu.se.dslab.dao;

import java.util.List;

import cn.edu.sjtu.se.dslab.action.bean.PageBean;
import cn.edu.sjtu.se.dslab.component.data.AvionicsEquipment;
import cn.edu.sjtu.se.dslab.component.data.EquipmentCategory;
import cn.edu.sjtu.se.dslab.exception.DBException;

/**
 * 
 * @author longshaohang
 * 
 */
public interface IAvionicsEquipmentDao {
	public void save(AvionicsEquipment equipment);

	public void update(AvionicsEquipment equipment);

	public AvionicsEquipment queryById(long id);
	
	public AvionicsEquipment queryByUri(String uri);
	
	public AvionicsEquipment queryByName(String name);
	
	public List<AvionicsEquipment> queryByType(String type);
	
	public List<AvionicsEquipment> queryAll();
	
	public List<AvionicsEquipment> queryByEquipmentCategory(EquipmentCategory category);
	
	public PageBean<AvionicsEquipment> queryByPageNum(int pageNo)
			throws DBException;
	
	public List<AvionicsEquipment>  queryByProperty(String text);
}
